import Vue from 'vue'
import App from './App.vue'
//注册mock环境
import "@/mock/mock"
import { Button,NavBar,Progress,Swipe, SwipeItem,Tabbar, TabbarItem,List,Icon} from 'vant'
import VueRouter from 'vue-router';
import Lists from "@/components/Lists";
import User from "@/components/User";

Vue.use(VueRouter);  //将vue-router引用为vue的插件
Vue.use(Progress);
Vue.use(Button).use(List);
Vue.use(NavBar).use(Swipe).use(SwipeItem).use(Tabbar).use(TabbarItem).use(Icon);

Vue.config.productionTip = false
const router = new VueRouter({
  //routes:routes
  routes:[
    {path:'/A',component:Lists},
    {path:'/B',component:User}
  ]
})
new Vue({
  render: h => h(App),
  router
}).$mount('#app')
